//
//  TuiHuanTableViewCell.m
//  Experss
//
//  Created by wmwMAC on 17/8/8.
//  Copyright © 2017年 嗯，大葱. All rights reserved.
//

#import "TuiHuanTableViewCell.h"

@implementation TuiHuanTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    _NumberBackView.layer.borderColor = BaseColor.CGColor;
    _NumberBackView.layer.borderWidth = 1;
    _NumberBackView.layer.cornerRadius = 5;
    _NumberBackView.clipsToBounds = YES;
    
}

- (IBAction)addBtnSelect:(UIButton *)sender {
    
    _numberLable.text = [NSString stringWithFormat:@"%ld",_numberLable.text.integerValue+1];
}

- (IBAction)reduceBtnSelect:(UIButton *)sender {
    
    if (_numberLable.text.integerValue == 1) {
        _numberLable.text = [NSString stringWithFormat:@"%ld",_numberLable.text.integerValue];
    }else{
    _numberLable.text = [NSString stringWithFormat:@"%ld",_numberLable.text.integerValue-1];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
   
}
@end
